package com.r2coding.article.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.r2coding.common.util.PageUtils;
import com.r2coding.common.util.Query;

import com.r2coding.article.dao.ArticleLabelDao;
import com.r2coding.article.entity.ArticleLabelEntity;
import com.r2coding.article.service.ArticleLabelService;

/**
 * 文章标签中间表
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-13 19:34:15
 */
@Service("articleLabelService")
public class ArticleLabelServiceImpl extends ServiceImpl<ArticleLabelDao, ArticleLabelEntity> implements ArticleLabelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ArticleLabelEntity> page = this.page(
                new Query<ArticleLabelEntity>().getPage(params),
                new QueryWrapper<ArticleLabelEntity>()
        );

        return new PageUtils(page);
    }

}